import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home";
import CompanyMain from "./views/main/Company";
import AddCompany from "./views/main/AddCompany";
import List from "./views/list/List";
import UserList from "./views/user/UserList";
import UserRole from "./views/user/UserRole";


Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      component: Home
    },
    {
      path: "/main/company",
      component: CompanyMain
    },
    {
      path: "/list/:category/:type",
      component: List
    },
    {
      path: "/list/:category",
      component: List
    },
    {
      path: "/user/list",
      component: UserList
    },
    {
      path: "/user/role",
      component: UserRole
    },
    {
      path: "/add/company",
      component: AddCompany
    }
  ]
});
